home *** CD-ROM | disk | FTP | other *** search
Wrap
Text File | 2002-01-23 | 61.9 KB | 1,780 lines
dialog MusIRC { title MusIRC v $+ %version - (Sharing: %totalmp3s MP3s, %totalzips Zips, %totalavis Avis, %totalexes Exes, %totalmpgs Mpgs, %totalmpegs Mpegs, %totalisos Isos, %totalmovs Movs, and %totalasfs Asfs.) size -1 -1 354 215 option dbu link "http://www.musirc.com", 93, 280 0 200 10 link "http://www.geocities.com/musirc", 95, 270 7 200 10 tab "Find Files", 1, 2 2 350 191 text "Search For:", 5, 10 26 50 11, tab 1 edit "", 6, 50 24 250 12, tab 1 autovs button "Cancel", 10, 315 30 30 10, tab 1 list 11, 4 44 346 154, tab 1 sort hsbar vsbar text "0 file(s) found", 53, 2 200 50 9, tab 1 text "", 69, 40 200 275 9, tab 1 right center button "Search", 7, 315 20 30 10, tab 1 default tab "MP3 Player", 2 box "MP3 Playlist", 12, 5 40 164 140, tab 2 list 13, 10 50 154 135, tab 2 vsbar hsbar button ">", 15, 31 27 17 8, tab 2 button "<<", 16, 13 27 17 8, tab 2 button ">>", 17, 85 27 17 8, tab 2 button "| |", 18, 49 27 17 8, tab 2 button "[ ]", 19, 67 27 17 8, tab 2 check "Random Play", 22, 110 30 40 11, tab 2 left push check "Advertise Song", 23, 155 25 48 7, tab 2 right button "Refresh Playlist", 66, 60 181 50 12, tab 2 box "MP3 Information:", 21, 170 35 178 155, tab 2 text "Title:", 27, 175 46 50 8, tab 2 edit "", 29, 205 45 120 10, tab 2 read autohs text "Artist:", 30, 175 60 15 9, tab 2 edit "", 31, 205 59 120 10, tab 2 read autohs text "Album:", 32, 175 75 16 8, tab 2 edit "", 33, 205 74 120 10, tab 2 read autohs text "Genre:", 36, 175 92 20 8, tab 2 edit "", 42, 205 91 120 10, tab 2 read autohs text "Year:", 24, 175 109 13 8, tab 2 edit "", 26, 205 108 120 10, tab 2 read autohs text "Comments:", 54, 175 125 31 8, tab 2 edit "", 55, 205 124 120 10, tab 2 multi read autohs autovs text "Mode:", 109, 175 141 120 10, tab 2 edit "", 63, 205 140 120 10, tab 2 read autohs text "Type:", 119, 175 158 120 10, tab 2 edit "", 120, 205 157 120 10, tab 2 read autohs text "Length:", 117, 175 175 120 10, tab 2 edit "", 118, 205 174 120 10, tab 2 read autohs check "Loop", 57, 115 19 30 10, tab 2 left push box "MP3 Player Controls", 65, 10 19 96 20, tab 2 center text "Now Playing:", 90, 8 201 50 8, tab 2 list 14, 45 200 255 12, tab 2 tab "Set Sharing Directory", 3 box "Directory Sharing Settings", 34, 10 20 335 50, tab 3 button "Add a Directory", 99, 50 45 113 12, tab 3 button "Remove a Directory", 98, 175 45 110 12, tab 3 box "Outgoing Transfer Settings", 37, 10 75 335 50, tab 3 text "Maximum Simultaneous Outgoing Transfers:", 38, 35 90 200 12, tab 3 edit "", 39, 180 86 50 12, tab 3 center text "Maximum Simultaneous Outgoing Transfers Per User:", 40, 35 105 200 12, tab 3 edit "", 41, 180 101 50 12, tab 3 center edit "", 35, 95 30 223 12, tab 3 read center box "Incoming Transfer Settings", 103, 10 130 335 50, tab 3 text "Maximum Simultaneous Incoming Transfers:", 104, 35 145 200 12, tab 3 edit "This Option Is Not Yet Available.", 105, 180 143 100 12, tab 3 read center text "Maximum Simultaneous Incoming Transfers Per User:", 106, 35 160 200 12, tab 3 edit "This Option Is Not Yet Available.", 107, 180 158 100 12, tab 3 read center text "Currently Shared Directories:", 108, 25 33 70 12, tab 3 tab "Open Download Folder", 94 tab About MusIRC v4.3, 43 text "MusIRC v4.3 for #MusIRC", 44, 140 26 120 11, tab 43 text "Keeping music free since March 4th, 2001 and keeping files free since December 14th, 2001", 45, 56 35 220 10, tab 43 text "Created by: Supporters/Members: Web Designers/Graphics: MusIRC Network Management:", 46, 32 52 300 10, tab 43 text "MeTaLRoCk DvJ Coach MeTaLRoCk", 47, 30 62 300 10, tab 43 text "[88]H[88] Sci-Tek Praetorian reddog", 48, 30 74 300 10, tab 43 text "DrkEtrnl Mekker Smely-Tuna DvJ", 49, 30 86 300 10, tab 43 text "[[NiTrO]] ThaCyberThug Sci-Tek", 50, 30 98 300 10, tab 43 text "{GRiM fillion |-SeanA-|", 51, 30 110 300 10, tab 43 text "Serialz D-Wayne ", 52, 30 122 300 10, tab 43 text "DaPyr0x |-SeanA-|", 20, 30 134 300 10, tab 43 text "|v|oF[98] reddog", 59, 30 147 300 10, tab 43 text "The MusIRC creators, sponsors, supporters, and managers are not liable for any damages to your computer nor any illegal activities commited with the use of this program. We are also not responsible for any program errors that may occur. You may freely distribute this program as long as you do not make modifications or illegal copies. If you need assistance, please contact us via our website at http://www.musirc.com", 121, 10 165 335 25, tab 43 button "Close", 4, 315 197 30 13, ok } on *:dialog:MusIRC:sclick:94:{ run MusIRC Downloads } alias mp3.length { var %mp3.len $int($calc($1 / 1000)) var %mp3.min $int($calc(%mp3.len / 60)) var %mp3.sec $calc(%mp3.len - (%mp3.min * 60)) if (%mp3.min < 10) { set %mp3.min 0 $+ %mp3.min } if (%mp3.sec < 10) { set %mp3.sec 0 $+ %mp3.sec } set %mp3.len %mp3.min $+: $+ %mp3.sec return %mp3.len } alias mp3.position { if ($dialog(MusIRC) == $null) { return } did -ra MusIRC 62 $mp3.length(%current.pathmp3) / $mp3.length($mp3(%current.pathmp3).length) } on *:dialog:MusIRC:sclick:58: { ivoladd | did -r musirc 60 | did -a musirc 60 $ivol } on *:dialog:MusIRC:sclick:59: { ivolrem | did -r musirc 60 | did -a musirc 60 $ivol } on *:dialog:MusIRC:sclick:13 { set %current.mp3 $did(MusIRC,13,$did(MusIRC,13).sel).text set %current.pathmp3 $shortfn( $read(MP3List.txt, w, * $+ $did(MusIRC,13,$did(MusIRC,13).sel).text $+ *)) did -r MusIRC 14 did -a MusIRC 14 %current.mp3 mp3.title if (%mp3.title == $null) { set %mp3.title Not Given } did -r MusIRC 29 did -a MusIRC 29 %mp3.title mp3.artist if (%mp3.artist == $null) { set %mp3.artist Not Given } did -r MusIRC 31 did -a MusIRC 31 %mp3.artist mp3.year if (%mp3.year == $null) { set %mp3.year Not Given } did -r MusIRC 26 did -a MusIRC 26 %mp3.year mp3.album if (%mp3.album == $null) { set %mp3.album Not Given } did -r MusIRC 33 did -a MusIRC 33 %mp3.album mp3.genre if (%mp3.genre == $null) { set %mp3.genre Not Given } did -r MusIRC 42 did -a MusIRC 42 %mp3.genre mp3.comment if (%mp3.comment == $null) { set %mp3.comment Not Given } did -r MusIRC 55 did -a MusIRC 55 %mp3.comment mp3.comment set %mp3.mode $mp3(%current.pathmp3).mode did -r MusIRC 63 did -a MusIRC 63 %mp3.mode set %mp3.version $mp3(%current.pathmp3).version did -r MusIRC 120 did -a MusIRC 120 %mp3.version set %mp3.time $mp3(%current.pathmp3).length set %mp3.time2 %mp3.time %minutes.time = %mp3.time / 60000 %seconds.time = %mp3.time2 % 60 set %mp3time.seconds %seconds.time set %mp3length $int(%minutes.time) Minute(s) : %mp3time.seconds Second(s) did -r MusIRC 118 did -a MusIRC 118 %mp3length } alias mp3.bitrate { set %mp3.bitrate $mp3(%current.pathmp3).bitrate } alias mp3.time { set %mp3.time $mp3(%current.pathmp3).length set %mp3.time2 %mp3.time %minutes.time = %mp3.time / 60000 %seconds.time = %mp3.time2 % 60 set %mp3time.seconds %seconds.time } alias mp3.mode { set %mp3.mode $mp3(%current.pathmp3).mode } alias mp3.title { set %mp3.title $mp3(%current.pathmp3).title } alias mp3.artist { set %mp3.artist $mp3(%current.pathmp3).artist } alias mp3.album { set %mp3.album $mp3(%current.pathmp3).album } alias mp3.comment { set %mp3.comment $mp3(%current.pathmp3).comment } alias mp3.genre { set %mp3.genre $mp3(%current.pathmp3).genre } alias mp3.year { set %mp3.year $mp3(%current.pathmp3).year } dialog dtable { title "Error" size -1 -1 110 30 option dbu text "Please enter something to search for.", 1, 11 5 118 8 button "OK", 2, 40 15 37 12, ok } on *:dialog:MusIRC:dclick:13 { if ($inmp3 == true) { .timer -m 1 1 splay stop } did -r MusIRC 14 did -a MusIRC 14 %current.mp3 splay -p %current.pathmp3 | set %playnum $did(MusIRC,13).sel showmp3 } on *:dialog:MusIRC:sclick:18:{ if %mp3pause == $null { .timer -m 1 1 splay pause | set %mp3pause yes } else { .timer -m 1 1 splay resume | unset %mp3pause } } on *:dialog:MusIRC:sclick:19:{ .timer -m 1 1 splay stop } on *:dialog:MusIRC:sclick:15:{ set %current.pathmp3 $shortfn( $read(MP3List.txt, w, * $+ $did(MusIRC,13,$did(MusIRC,13).sel).text $+ *)) set %current.mp3 $did(MusIRC,13,$did(MusIRC,13).sel).text did -r MusIRC 14 did -a MusIRC 14 %current.mp3 ;did -ra MusIRC 62 00:00 / $mp3.length($mp3(%current.pathmp3).length) splay -p %current.pathmp3 | set %playnum $did(MusIRC,13).sel unset %mp3.repeat showmp3 } on *:dialog:MusIRC:sclick:22:{ set %mp3.random $did(MusIRC,22).state } on *:dialog:MusIRC:sclick:23:{ set %mp3.message $did(MusIRC,23).state } on *:dialog:MusIRC:sclick:57: { set %mp3.repeat $did(MusIRC,57).state } on *:dialog:MusIRC:sclick:16:{ if (%mp3.random == 1) { did -c MusIRC 13 $rand(1,$line(@MP3List,0)) 0 99 set %current.pathmp3 $shortfn( $read(MP3List.txt, w, * $+ $did(MusIRC,13,$did(MusIRC,13).sel).text $+ *)) set %current.mp3 $nopath($longfn(%current.pathmp3)) did -r MusIRC 14 did -a MusIRC 14 %current.mp3 did -r MusIRC 14 did -a MusIRC 14 %current.mp3 mp3.title if (%mp3.title == $null) { set %mp3.title Not Given } did -r MusIRC 29 did -a MusIRC 29 %mp3.title mp3.artist if (%mp3.artist == $null) { set %mp3.artist Not Given } did -r MusIRC 31 did -a MusIRC 31 %mp3.artist mp3.year if (%mp3.year == $null) { set %mp3.year Not Given } did -r MusIRC 26 did -a MusIRC 26 %mp3.year mp3.album if (%mp3.album == $null) { set %mp3.album Not Given } did -r MusIRC 33 did -a MusIRC 33 %mp3.album mp3.genre if (%mp3.genre == $null) { set %mp3.genre Not Given } did -r MusIRC 42 did -a MusIRC 42 %mp3.genre mp3.comment if (%mp3.comment == $null) { set %mp3.comment Not Given } did -r MusIRC 55 did -a MusIRC 55 %mp3.comment splay -p %current.pathmp3 | set %playnum $did(MusIRC,13).sel3).sel showmp3 } else { set %playnum %playnum - 1 did -c MusIRC 13 %playnum 0 99 set %current.pathmp3 $shortfn( $read(MP3List.txt, w, * $+ $did(MusIRC,13,$did(MusIRC,13).sel).text $+ *)) set %current.mp3 $nopath($line(@MP3List,$fline(@MP3List,$longfn(%current.pathmp3)))) did -r MusIRC 14 did -a MusIRC 14 %current.mp3 did -r MusIRC 14 did -a MusIRC 14 %current.mp3 mp3.title if (%mp3.title == $null) { set %mp3.title Not Given } did -r MusIRC 29 did -a MusIRC 29 %mp3.title mp3.artist if (%mp3.artist == $null) { set %mp3.artist Not Given } did -r MusIRC 31 did -a MusIRC 31 %mp3.artist mp3.year if (%mp3.year == $null) { set %mp3.year Not Given } did -r MusIRC 26 did -a MusIRC 26 %mp3.year mp3.album if (%mp3.album == $null) { set %mp3.album Not Given } did -r MusIRC 33 did -a MusIRC 33 %mp3.album mp3.genre if (%mp3.genre == $null) { set %mp3.genre Not Given } did -r MusIRC 42 did -a MusIRC 42 %mp3.genre mp3.comment if (%mp3.comment == $null) { set %mp3.comment Not Given } did -r MusIRC 55 did -a MusIRC 55 %mp3.comment splay -p %current.pathmp3 | set %playnum $did(MusIRC,13).sel showmp3 } } on *:dialog:MusIRC:sclick:17:{ if (%mp3.random == 1) { did -c MusIRC 13 $rand(1,$line(@MP3List,0)) 0 99 set %current.pathmp3 $shortfn( $read(MP3List.txt, w, * $+ $did(MusIRC,13,$did(MusIRC,13).sel).text $+ *)) set %current.mp3 $nopath($longfn(%current.pathmp3)) did -r MusIRC 14 did -a MusIRC 14 %current.mp3 did -r MusIRC 14 did -a MusIRC 14 %current.mp3 mp3.title if (%mp3.title == $null) { set %mp3.title Not Given } did -r MusIRC 29 did -a MusIRC 29 %mp3.title mp3.artist if (%mp3.artist == $null) { set %mp3.artist Not Given } did -r MusIRC 31 did -a MusIRC 31 %mp3.artist mp3.year if (%mp3.year == $null) { set %mp3.year Not Given } did -r MusIRC 26 did -a MusIRC 26 %mp3.year mp3.album if (%mp3.album == $null) { set %mp3.album Not Given } did -r MusIRC 33 did -a MusIRC 33 %mp3.album mp3.genre if (%mp3.genre == $null) { set %mp3.genre Not Given } did -r MusIRC 42 did -a MusIRC 42 %mp3.genre mp3.comment if (%mp3.comment == $null) { set %mp3.comment Not Given } did -r MusIRC 55 did -a MusIRC 55 %mp3.comment splay -p %current.pathmp3 | set %playnum $did(MusIRC,13).sel showmp3 } else { set %playnum %playnum + 1 did -c MusIRC 13 %playnum 0 99 set %current.pathmp3 $shortfn( $read(MP3List.txt, w, * $+ $did(MusIRC,13,$did(MusIRC,13).sel).text $+ *)) set %current.mp3 $nopath($line(@MP3List,$fline(@MP3List,$longfn(%current.pathmp3)))) did -r MusIRC 14 did -a MusIRC 14 %current.mp3 did -r MusIRC 14 did -a MusIRC 14 %current.mp3 mp3.title if (%mp3.title == $null) { set %mp3.title Not Given } did -r MusIRC 29 did -a MusIRC 29 %mp3.title mp3.artist if (%mp3.artist == $null) { set %mp3.artist Not Given } did -r MusIRC 31 did -a MusIRC 31 %mp3.artist mp3.year if (%mp3.year == $null) { set %mp3.year Not Given } did -r MusIRC 26 did -a MusIRC 26 %mp3.year mp3.album if (%mp3.album == $null) { set %mp3.album Not Given } did -r MusIRC 33 did -a MusIRC 33 %mp3.album mp3.genre if (%mp3.genre == $null) { set %mp3.genre Not Given } did -r MusIRC 42 did -a MusIRC 42 %mp3.genre mp3.comment if (%mp3.comment == $null) { set %mp3.comment Not Given } did -r MusIRC 55 did -a MusIRC 55 %mp3.comment splay -p %current.pathmp3 | set %playnum $did(MusIRC,13).sel showmp3 } } on *:dialog:MusIRC:sclick:10:{ .timer 1 5 set %h.block false .timer 5 0 set %h.block true if (%h.block == true) { } if (%h.block == false) { .echo -a Your Search Has Been Canceled. .msg #MusIRC @HALT } } on *:dialog:MusIRC:sclick:66:{ BuildMP3List BuildZipList BuildAviList BuildExeList BuildMpgList BuildIsoList BuildMovList BuildMpegList BuildAsfList } on *:dialog:MusIRC:sclick:7:{ SearchStart | did -e MusIRC 7 } on *:dialog:MusIRC:dclick:11:{ var %req, %i = 0, %song, %nickname, %j = 0 %req = $did(MusIRC,11,$did(MusIRC,11,1).sel).text %i = $pos(%req,$chr(8),1) %j = $pos(%req,$chr(9),1) if ((%i != $null) && (%j != $null)) { %song = $left(%req, $calc(%j - 1)) %nickname = $right(%req, $calc($len(%req) - %i)) did -r MusIRC 69 did -a MusIRC 69 Requesting %song from %nickname .echo -a You are now requesting %song from %nickname $+ . Please wait while while we negotiate the file transfer. This may take several seconds depending on the network traffic. .ctcp %nickname @SEND %song halt } } on *:Dialog:MusIRC:init:0: { did -a MusIRC 35 %mp3Shared did -a MusIRC 39 %MaxSends did -a MusIRC 41 %MaxSendsPerUser mp3playerloadlist if (%mp3.random == 1) { did -c MusIRC 22 } if (%mp3.message == 1) { did -c MusIRC 23 } did -r MusIRC 14 did -a MusIRC 14 %current.mp3 } on *:Dialog:MusIRC:edit:35: { set %mp3shared $did(MusIRC,35) } on *:Dialog:MusIRC:sclick:36: { var %temp4 $sdir="Add a Directory" if (%temp4 == $null) { halt } set %mp3Shared %temp4 did -r MusIRC 35 did -a MusIRC 35 %mp3shared BuildMP3List BuildZipList BuildAviList BuildIsoList BuildMovList BuildExeList BuildMpgList BuildMpegList BuildAsfList } on *:Dialog:MusIRC:sclick:99: { if (%mp3shared == $null) { var %temp4 $sdir="Add a Directory" if (%temp4 == $null) { halt } set %mp3Shared %temp4 did -r MusIRC 35 did -a MusIRC 35 %mp3shared BuildMP3List BuildZipList BuildAviList BuildIsoList BuildMovList BuildExeList BuildMpgList BuildMpegList BuildAsfList halt } var %temp4 $sdir="Add a Directory" if (%temp4 == $null) { halt } var %N 1 var %mp3stemp %mp3shared if (%temp4 isin %mp3stemp) { var %totalshared $wildtok(%mp3stemp,*,0,59) :DirectoryLoop var %Directory. [ $+ [ %N ] ] $wildtok(%mp3stemp,*, $+ [ %N ] ,59) if (%N != %totalshared) { inc %N 1 | goto DirectoryLoop } unset %mp3stemp var %N 1 :DetectLoop if (%temp4 !isin %Directory. [ $+ [ %N ] ]) { if (%mp3stemp == $null) { var %mp3stemp %Directory. [ $+ [ %N ] ] if (%N == %totalshared) { goto next } inc %N 1 goto DetectLoop } var %mp3stemp %mp3stemp $+ ; $+ %Directory. [ $+ [ %N ] ] if (%N == %totalshared) { goto next } inc %N 1 goto DetectLoop } if (%temp4 == %Directory. [ $+ [ %N ] ]) { set %imnotice %temp4 is already being shared! | imnotice | unset %imnotice | halt } if (%N == %totalshared) { goto next } inc %N 1 goto DetectLoop :next set %imnotice %temp4 now shares other shared directories. To prevent conflicts MusIRC will set %temp4 as root. imnotice unset %imnotice if (%mp3stemp == $null) { var %mp3stemp %temp4 } else var %mp3stemp %mp3stemp $+ ; $+ %temp4 set %mp3shared %mp3stemp set %adddirectory %temp4 did -r MusIRC 35 did -a MusIRC 35 %mp3shared AddMP3List AddZipList halt } var %totalshared $wildtok(%mp3stemp,*,0,59) :DLoop var %Directory. [ $+ [ %N ] ] $wildtok(%mp3stemp,*, $+ [ %N ] ,59) if (%N != %totalshared) { inc %N 1 | goto DLoop } unset %mp3stemp var %N 1 :DLoop2 if (%N != %totalshared) { inc %N 1 | goto DLoop2 } set %mp3shared %mp3shared $+ ; $+ %temp4 set %adddirectory %temp4 did -r MusIRC 35 did -a MusIRC 35 %mp3shared AddMP3List AddZipList } on *:Dialog:MusIRC:sclick:98:UnshareDirectories on *:Dialog:MusIRC:sclick:4: { set %mp3Shared $did(MusIRC, 35) | set %MaxSends $did(MusIRC, 39) | set %MaxSendsPerUser $did(MusIRC, 41) } on *:mp3end:{ if (%mp3.repeat == 1) { splay %current.pathmp3 } else { if (%mp3.random == 1) { did -c MusIRC 13 $rand(1,$line(@MP3List,0)) 0 99 set %current.pathmp3 $shortfn( $read(MP3List.txt, w, * $+ $did(MusIRC,13,$did(MusIRC,13).sel).text $+ *)) set %current.mp3 $nopath($longfn(%current.pathmp3)) did -r MusIRC 14 did -a MusIRC 14 %current.mp3 did -r MusIRC 14 did -a MusIRC 14 %current.mp3 mp3.title if (%mp3.title == $null) { set %mp3.title Not Given } did -r MusIRC 29 did -a MusIRC 29 %mp3.title mp3.artist if (%mp3.artist == $null) { set %mp3.artist Not Given } did -r MusIRC 31 did -a MusIRC 31 %mp3.artist mp3.year if (%mp3.year == $null) { set %mp3.year Not Given } did -r MusIRC 26 did -a MusIRC 26 %mp3.year mp3.album if (%mp3.album == $null) { set %mp3.album Not Given } did -r MusIRC 33 did -a MusIRC 33 %mp3.album mp3.genre if (%mp3.genre == $null) { set %mp3.genre Not Given } did -r MusIRC 42 did -a MusIRC 42 %mp3.genre mp3.comment if (%mp3.comment == $null) { set %mp3.comment Not Given } did -r MusIRC 55 did -a MusIRC 55 %mp3.comment splay -p %current.pathmp3 | set %playnum $did(MusIRC,13).sel showmp3 } else { set %playnum %playnum + 1 did -c MusIRC 13 %playnum 0 99 set %current.pathmp3 $shortfn( $read(MP3List.txt, w, * $+ $did(MusIRC,13,$did(MusIRC,13).sel).text $+ *)) set %current.mp3 $nopath($line(@MP3List,$fline(@MP3List,$longfn(%current.pathmp3)))) did -r MusIRC 14 did -a MusIRC 14 %current.mp3 did -r MusIRC 14 did -a MusIRC 14 %current.mp3 mp3.title if (%mp3.title == $null) { set %mp3.title Not Given } did -r MusIRC 29 did -a MusIRC 29 %mp3.title mp3.artist if (%mp3.artist == $null) { set %mp3.artist Not Given } did -r MusIRC 31 did -a MusIRC 31 %mp3.artist mp3.year if (%mp3.year == $null) { set %mp3.year Not Given } did -r MusIRC 26 did -a MusIRC 26 %mp3.year mp3.album if (%mp3.album == $null) { set %mp3.album Not Given } did -r MusIRC 33 did -a MusIRC 33 %mp3.album mp3.genre if (%mp3.genre == $null) { set %mp3.genre Not Given } did -r MusIRC 42 did -a MusIRC 42 %mp3.genre mp3.comment if (%mp3.comment == $null) { set %mp3.comment Not Given } did -r MusIRC 55 did -a MusIRC 55 %mp3.comment splay -p %current.pathmp3 | set %playnum $did(MusIRC,13).sel showmp3 } } } alias showmp3 { if (%mp3.message == 0) { mp3.bitrate | /mp3.time | if (%mp3.artist == Not Given) || (%mp3.title == Not Given) { } else { mp3.bitrate | /mp3.time | { echo -a 12You are playing 4[Filename:12 %current.mp3 $+ 4] 4[Album:12 %mp3.album $+ 4] 4[Bitrate:12 %mp3.bitrate $+ 4] 4[Genre:12 %mp3.genre $+ 4] [Length:12 $int(%minutes.time) $+ 4:12 $+ %mp3time.seconds $+ 4] 12with 4M2u3s4I5R6C 7v1449.103 } } } else { mp3.bitrate | /mp3.time | { ame 12is playing 4[Filename:12 %current.mp3 $+ 4] 4[Album:12 %mp3.album $+ 4] 4[Bitrate:12 %mp3.bitrate $+ 4] 4[Genre:12 %mp3.genre $+ 4] [Length:12 $int(%minutes.time) $+ 4:12 $+ %mp3time.seconds $+ 4] 12with 4M2u3s4I5R6C 7v1449.103 } } } alias mp3u_prbr { set %i 0 unset %a :start if ($$1 == %i) { goto end } if (%i > 100) { goto end } set %a %a $+ inc %i 1 goto start :end if $$2 == up { if ($dialog(MusIRC) != $null) { did -a MusIRC 81 %a $+ $$1 $+ % } } else { if ($dialog(MusIRC) != $null) { did -a MusIRC 65 %a $+ $$1 $+ % } } } alias RemoveMP3List { var %N 1 :RemLoop if (%RemDirectory isin $line(@MP3List,%N)) { dline @MP3List %N goto RemLoop } if (%N >= $line(@MP3List,0)) { goto end } if ($line(@MP3List,0) == 0) { goto end } inc %N 1 goto RemLoop :end set %MP3FileCount $line(@MP3List,0) if ($dialog(MusIRC) != $null) { mp3playerloadlist } unset %RemDirectory } alias AddMP3List { set %version 4.3 echo -s Adding MP3s From Directory: %adddirectory var %mp3TempCount $findfile(%adddirectory, *.mp3, 0, aline @MP3List $1- ) if ($dialog(MusIRC) != $null) { mp3playerloadlist } } alias AddZipList { echo -s Adding Zips From Directory: %adddirectory var %mp3TempCount $findfile(%adddirectory, *.zip, 0, aline @ZipList $1- ) } alias BuildMP3List { if (%mp3shared == $null) { set %error You are not sharing any directories! | error | unset %error | halt } var %fn, %j, %k, %num set %mp3stemp window -c @MP3List window -h @MP3List echo -s Rebuilding MP3 List unset %mp3FileCount var %N 1 var %totalshared $wildtok(%mp3shared,*,0,59) :NextDirectory set %mp3stemp $wildtok(%mp3shared,*,%N,59) if ($isdir(%mp3stemp) == $false) { set %error %mp3stemp is NOT a valid directory! error unset %error inc %N 1 goto NextDirectory } echo -s Adding files from %mp3stemp var %mp3TempCount $findfile(%mp3stemp, *.mp3, 0, aline @MP3List $1- ) if (%mp3Filecount == $null) { set %mp3FileCount %mp3TempCount } else { set %mp3FileCount $calc(%mp3FileCount + %mp3TempCount) } if (%N == %totalshared) { goto Done } inc %N 1 goto NextDirectory :Done var %totalfiles set %totalfiles $calc(%totalmp3s + %totalzips + %totalavis + %totalisos %totalmovs + %totalexes + %totalmpgs + %totalmpegs + %totalasfs) titlebar MusIRC v $+ %version (Total Shared: %totalfiles $+ ) (Sharing: %totalmp3s MP3s, %totalzips Zips, %totalavis Avis, %totalexes Exes, %totalmpgs Mpgs, %totalmpegs Mpegs, %totalisos Isos, %totalmovs Movs, and %totalasfs Asfs.) var %count if ($isfile(MP3List.txt) == $false) { var %oldMP3List | set %oldMP3List 0 } if (%oldfilecount == %mp3filecount) { set %oldfilecount 0 } set %count 1 if (%oldfilecount != %mp3FileCount) { .remove MP3List.txt while (%count <= %mp3filecount) { write MP3List.txt $line(@MP3List, %count) inc %count } window -c @ShortMP3List window -sh @ShortMP3List set %oldfilecount %mp3filecount set %count 1 while (%count <= %mp3filecount) { aline @ShortMP3List $nopath($read -l $+ %count MP3List.txt) inc %count } echo MP3count: %mp3FileCount set %totalmp3s %mp3FileCount echo -s MP3 List Built set %oldfilecount %mp3filecount } var %totalfiles set %totalfiles $calc(%totalmp3s + %totalzips + %totalavis + %totalisos %totalmovs + %totalexes + %totalmpgs + %totalmpegs + %totalasfs) } alias mp3playerloadlist { did -r MusIRC 13 set %i 1 :start if (%i > $line(@ShortMP3List,0)) { goto end } did -a MusIRC 13 $nopath($line(@ShortMP3List,%i)) inc %i 1 goto start unset %i :end } alias MP3List { window -h @Requests aline @Requests [ $asctime(hh:nn:ss) ] $nick requested $2- var %i = 0, %j, %k, %l, %m, %ccounter = 1, %t, %tc var %fn, %title, %artist = ., %temp = ., %hitcnt, %mp3srch var %Reply, %temp, %match var %zipsrch, %avisrch, %mpgsrch, %exesrch, %mpegsrch var %asfsrch, %wavsrch %j = $pos($2-, @FILE=, 1) %k = $pos($2-, @ARTIST=, 1) if (%k == $null) { %l = $len($2-) } else { %l = %k } if (%j == $null) { %j = 1 } else { %j = %j + 7 } %m = %l - %j %title = $mid($2-,%j,%m) if (%k != $null) { %k = %k + 8 %l = $len($2-) %m = %l - %k + 1 %artist = $mid($2-,%k,%m) } if ( %title == . ) { var %title = $chr(32) } if ( %artist == . ) { var %artist = $chr(32) } %srch = * $+ $replace($addtok(%title,%artist,32),$chr(32),*) $+ * clear -l @SearchResults window -h @SearchResults filter @ZipList @SearchResults %srch filter @MP3List @SearchResults %srch filter @AviList @SearchResults %srch filter @ExeList @SearchResults %srch filter @MpgList @SearchResults %srch filter @MpegList @SearchResults %srch filter @AsfList @SearchResults %srch filter @IsoList @SearchResults %srch filter @MovList @SearchResults %srch %i = 0 set %ttime 1 if (%MaxResults == $null) { set %MaxResults 50 } :Next inc %ttime 1 if (%ttime > %MaxResults) { halt } inc %i if ($line(@SearchResults,0) != 0) { %fn = $line(@SearchResults,%i) if ($file(%fn).size > 0) { inc %ccounter %temp = $nopath(%fn) $chr(9) $file(%fn).size $+ b %Reply = $addtok(%Reply,%temp,5) window -h @Requests aline @Requests [ $asctime(hh:nn:ss) ] $nick @MP3List $nopath(%fn) $chr(9) $file(%fn).size $+ b } } if (%ccounter >= 6) { qmsg $nick @MP3List %reply unset %reply set %ccounter 0 goto next } if (%fn != $null) { goto next } } alias SearchStart { var %title, %artist if ($chan(#MusIRC == $null)) join #MusIRC did -r MusIRC 69 did -a MusIRC 69 Searching... Please only hit search once. If nothing comes up, it means nobody has what you are looking for. %title = $did(6) .timer 1 5 set %m.block false .timer 5 0 set %m.block true if (%m.block == false) { if ((%title == $null) && (%artist == $null)) { dialog -md Information dtable | halt } .msg #MusIRC @FILESEARCH @FILE= $+ * $+ %title $+ * .echo -a Please wait while we search the server for " $+ %title $+ ". If results do not show up within 30 seconds, it means we could not find it, please try another search. did -r MusIRC 11 } } if (%m.block == true) { } if (%title == $null) { set %title . } if (%artist == $null) { set %artist . } did -b MusIRC 69 on ^1:text:*@HALT*:#MusIRC:{ .halt } on ^1:quit:{ .halt } on ^1:join:#MusIRC:{ .halt } on ^1:part:#MusIRC:{ .halt } on ^1:kick:#MusIRC:{ .halt } on *:text:@HALT:#MusIRC:{ clear @msgqueue } on ^1:text:*@FILESEARCH*:#MusIRC:{ .halt } on *:text:*:?:{ if ($1 == @MP3List) { var %i = 0, %Reply, %temp %Reply = $2- :Loop inc %i %temp = $gettok(%Reply, %i, 5) if (%temp != $null) { did -a MusIRC 11 { %temp $chr(8) $nick } | goto Loop } refreshrequest close -m $nick halt } if ($1 == @MESSAGE) { window -h @Messages aline @Messages [ $asctime(hh:nn:ss) ] $nick : $2- did -r MusIRC 69 did -a MusIRC 69 $2- if ($2- == Searching complete) { did -e MusIRC 7 close -m $nick halt } } } on *^:text:*@MP3List*:?:{ close -m $nick } on *:text:*:#:{ if ($1 == @FILESEARCH) { $MP3List($1,$2-) } if ($1 == @MP3COUNT) { notice $nick @FILECOUNT %totalcount } } ctcp *:*:*:{ if ($1 == @SEND) { var %fn, %snd=0, %i %snd = $send(0) if (%snd != $null) { %i = 0 :NextSend inc %i if (($send(%i) == $nick) && ($send(%i).file == $2-)) { .notice $nick Transfer already in progress... halt } if (%i < $send(0)) goto NextSend } %fn = $findfile(%mp3Shared, $2-, 1) if (%fn == $null) { if (%Bryan == WERD) { NAPDNLD $nick $2- halt } halt } if ($send(0) >= %MaxSends) { queue $nick $+ $chr(5) $+ %fn | halt } if ($send($nick,0) >= %MaxSendsPerUser) { queue $nick $+ $chr(5) $+ %fn | halt } .dcc send $nick " $+ %fn $+ " halt } if ($1 == @SENDMP3List) { dcc send $nick $mircdirMP3List.txt } if ($1 == @SENDZIPList) { dcc send $nick $mircdirZipList.txt } if ($1 == @SENDAVIList) { dcc send $nick $mircdirAVIList.txt } if ($1 == @SENDEXEList) { dcc send $nick $mircdirEXEList.txt } if ($1 == @SENDMPEGList) { dcc send $nick $mircdirMPEGList.txt } if ($1 == @SENDMPGList) { dcc send $nick $mircdirMPGList.txt } if ($1 == @SENDASFList) { dcc send $nick $mircdirASFList.txt } if ($1 == @SENDISOList) { dcc send $nick $mircdirISOList.txt } if ($1 == @SENDMOVList) { dcc send $nick $mircdirMOVList.txt } if ($1 == @MUSIRC) { ctcp $nick @MVERSION Version %version } if ($1 == @MP3COUNT) { notice $nick @FILECOUNT %totalcount } } alias refreshrequest { did -a MusIRC 53 $did(MusIRC,11).lines file(s) found } on *:start:{ set %version 4.3 set %oldfilecount 99999 if ($exists(%mp3shared) == $false) { set %mp3shared $?="What drive would you like to share?" } echo -a 4Looking for files in Shared Directories. To Change your sharing directories, please click on "Set Sharing Directory" BuildMP3List BuildZipList BuildAviList BuildIsoList BuildMovList BuildExeList BuildMpgList BuildMpegList BuildAsfList echo -a 4Welcome to MusIRC v $+ %version designed for #MusIRC on the MusIRC IRC Network echo -a 4- echo -a 4Keeping music free since March 4th, 2001 and files free since January 11th, 2001 echo -a 4- echo -a 4Click on MusIRC Search/Play/Share/Options to start. echo -a 4- echo -a 4Click Change User Name to change your user name. echo -a 4- echo -a 4If you need help at any time, Press F1 or type /help echo -a 4- echo -a 4Please send feedback or bug reports to xxjack12xx@doramail.com echo -a 4- echo -a 4Thank you for using MusIRC, we hope you enjoy it. } alias CheckQueues { if ($window(@Queues) == $null) { timerQueues off } if ($line(@Queues,0) == 0) { timerQueues off } if ($send(0) >= %MaxSends) { halt } var %i = 0, %nick, %fn :QueueLoop inc %i %nick = $gettok($line(@Queues,%i),1,5) if (%nick == $null) { halt } if ($send(%nick) >= %MaxSendsPerUser) { goto QueueLoop } dcc send %nick " $+ $gettok($line(@Queues,%i),2,5) $+ " dline @Queues %i } alias queue { if ($window(@Queues) == $null) { window -h @Queues | timerQueues 0 5 CheckQueues } if ($timer(Queues) == $null) { timerQueues 0 5 CheckQueues } aline @Queues $1- .notice $gettok($1-,1,5) Your request has been placed in queue slot # $+ $line(@Queues,0) $+ . It will send as soon as one finishes. } menu * { MusIRC v $+ %version .Change User Name: nick $$?"Enter Desired User Name" .MusIRC Search/Play/Share/Options: if ($dialog(MusIRC) == $null) { dialog -md MusIRC MusIRC } | else { dialog -v MusIRC MusIRC } .View Your Downloaded Files { /run MusIRC Downloads } .Refresh File List: { BuildMP3List BuildZipList BuildAviList BuildIsoList BuildMovList BuildExeList BuildMpgList BuildMpegList BuildAsfList } .Connect to MusIRC Server: /server MusIRC .Clear Current Display { clear } .Help { help } SpeedDCC %dcc .On :fsend on | dcc packetsize 4096 | pdcc 100931731455 | echo -a 14MOFDCC 1.1 is open | set %dcc on .Off :fsend $reset | dcc packetsize $reset | pdcc $reset | echo -a 14MOFDCC 1.1 is closed | set %dcc off .Default :fsend $reset | dcc packetsize $reset | pdcc $reset | echo -a 14MOFDCC 1.1 [Default set] | set %dcc off .Set speed :fsend $$?="Fsend on or off?" | dcc packetsize $$?="Packetsize? (max.4096) | pdcc $$?="Pdcc?" | echo -a 14MOFDCC 3.0 is open | set %dcc on .Max speed (recommended):fsend on | dcc packetsize 4096 | pdcc 999999999999999999999999999999 } alias F10 { if (%rcvdfailed == $null) { echo No failed receives. halt } if ($file(%rcvdfailed) == $null) { echo %rcvdfailed has already been deleted. halt } .remove $shortfn(%rcvdfailed) echo %rcvdfailed has been deleted. } ON *:getfail:*.*:{ echo failed set %rcvdfailed $filename echo Your transfer of $nopath(%rcvdfailed) has failed. Press F10 to delete it. } on *:connect:{ .timerqueuenotice -m 0 5000 qsmsg if ($me == MusIRC1) { /nick M $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) } if ($me == MusIRC2) { /nick M $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) } join #MusIRC .timer 1 5 dialog -md MusIRC MusIRC } alias qmsg { window -h @msgqueue aline @msgqueue $$1 $$2- } alias qsmsg { if $line(@msgqueue,1) != $null { .msg $gettok($line(@msgqueue,1),1,32) $gettok($line(@msgqueue,1),2-,32) dline @msgqueue 1 } } on *:start:{ set %m.block false set %h.block false if ($me == MusIRC1) { /nick M $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) } if ($me == MusIRC2) { /nick $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) $+ $rand(0,9) } } on *:disconnect:{ .timerqueuenotice off set %m.block false set %h.block false } alias error { $dialog(Error,Error,-4) unset %error } dialog Error { title "Error" size -1 -1 150 30 option dbu text "", 5, 0 2 150 13, center button "OK", 10, 55 17 40 10, ok } on 1:dialog:Error:init:0: { did -r Error 5 did -a Error 5 %error } alias imnotice { $dialog(Notice,Notice,-4) unset %imnotice } dialog Notice { title "Important Notice" size -1 -1 150 30 option dbu text "", 5, 0 2 150 13, center button "OK", 10, 55 17 40 10, ok } on 1:dialog:Notice:init:0: { did -r Notice 5 did -a Notice 5 %imnotice } dialog UnshareD { title "Remove A Directory" size -1 -1 200 90 option dbu list 1, 0 0 200 75, autovs, autohs text "", 2, 52 77 100 25 button "Remove", 10, 10 76 80 12 button "Done" 100, 110 76 80 12, ok } on *:Dialog:UnshareD:init:0: { if ($dialog(MusIRC) == $null) { halt } if (%mp3shared == $null) { goto end } var %mp3stemp %mp3shared var %totalshared $wildtok(%mp3stemp,*,0,59) var %N 1 :DirectoryLoop did -a UnshareD 1 $wildtok(%mp3stemp,*,%N,59) if (%N != %totalshared) { inc %N 1 | goto DirectoryLoop } :end } on *:Dialog:UnshareD:sclick:1: { set %Selected $did(UnshareD,1).sel } on *:Dialog:UnshareD:sclick:10: { set %RemDirectory $did(UnshareD,1).seltext if (%Selected == $null) { set %error You have not selected a directory to unshare! | error | unset %error | halt } did -d UnshareD 1 %Selected unset %selected RemoveMP3List RemoveZipList RemoveMpgList RemoveMpegList RemoveAviList RemoveIsoList RemoveMovList RemoveAsfList RemoveExeList } on *:Dialog:UnshareD:sclick:100: { var %totalfolders $did(UnshareD,1).lines var %mp3stemp if ($did(UnshareD,1,1).text == $null) { set %imnotice You are currently not sharing any directories, please select at least 1 directory to share. imnotice unset %imnotice unset %mp3shared goto end } var %N 1 :SharingLoop if (%mp3stemp == $null) { set %mp3stemp $did(UnshareD,1,%N).text if (%N == %totalfolders) { goto end } inc %N 1 goto SharingLoop } set %mp3stemp %mp3stemp $+ ; $+ $did(UnshareD,1,%N).text if (%N != %totalfolders) { inc %N 1 | goto SharingLoop } :end set %mp3shared %mp3stemp unset %mp3stemp unset %selected } alias UnshareDirectories { $dialog(UnshareD,UnshareD,-4) did -r MusIRC 35 did -a MusIRC 35 %mp3shared } alias mp3.bitrate { set %mp3.bitrate $mp3(%current.pathmp3).bitrate } alias mp3.mode { set %mp3.mode $mp3(%current.pathmp3).mode } alias mp3.year { set %mp3.year $mp3(%current.pathmp3).year) } alias mp3.time { set %mp3.time $duration($calc($mp3($inmp3.fname).length / 1000)) } alias ivol { return $deltok($calc($vol(mp3) / 655.35),2,46)) $+ $chr(37) } alias ivoladd { vol -p $calc($vol(mp3) + 655.35) } alias ivolrem { vol -p $calc($vol(mp3) - 655.35) } raw 352:*:{ haltdef } raw 353:*:{ haltdef } alias RemoveZipList { var %N 1 :RemZipLoop if (%RemDirectory isin $line(@ZipList,%N)) { dline @ZipList %N goto RemZipLoop } if (%N >= $line(@ZipList,0)) { goto endzip } if ($line(@ZipList,0) == 0) { goto endzip } inc %N 1 goto RemZipLoop :endzip set %ZipFileCount $line(@ZipList,0) unset %RemDirectory } alias AddZipList { echo -s Adding zips From Directory: %adddirectory var %ZipTempCount $findfile(%adddirectory, *.zip, 0, aline @ZipList $1- ) } alias BuildZipList { if (%mp3shared == $null) { set %error You are not sharing any directories! | error | unset %error | halt } var %fn, %j, %k, %num set %mp3stemp window -c @ZipList window -h @ZipList echo -s Rebuilding Zip List unset %MP3FileCount var %N 1 var %totalshared $wildtok(%mp3shared,*,0,59) :NextZipDirectory set %mp3stemp $wildtok(%mp3shared,*,%N,59) if ($isdir(%mp3stemp) == $false) { set %error %mp3stemp is NOT a valid directory! error unset %error inc %N 1 goto NextZipDirectory } echo -s Adding zips from %mp3stemp var %ZipTempCount $findfile(%mp3stemp, *.zip, 0, aline @ZipList $1- ) if (%mp3Filecount == $null) { set %mp3FileCount %ZipTempCount } else { set %mp3FileCount $calc(%mp3FileCount + %ZipTempCount) } if (%N == %totalshared) { goto ZipDone } inc %N 1 goto NextZipDirectory :ZipDone var %totalfiles set %totalfiles $calc(%totalmp3s + %totalzips + %totalavis + %totalisos %totalmovs + %totalexes + %totalmpgs + %totalmpegs + %totalasfs) titlebar MusIRC v $+ %version (Total Shared: %totalfiles $+ ) (Sharing: %totalmp3s MP3s, %totalzips Zips, %totalavis Avis, %totalexes Exes, %totalmpgs Mpgs, %totalmpegs Mpegs, %totalisos Isos, %totalmovs Movs, and %totalasfs Asfs.) var %count if ($isfile(ZipList.txt) == $false) { var %oldZipList | set %oldZipList 0 } if (%oldfilecount == %mp3filecount) { set %oldfilecount 0 } set %count 1 if (%oldfilecount != %mp3FileCount) { .remove ZipList.txt while (%count <= %mp3filecount) { write ZipList.txt $line(@ZipList, %count) inc %count } window -c @ShortZipList window -sh @ShortZipList set %oldfilecount %mp3filecount set %count 1 while (%count <= %mp3filecount) { aline @ShortZipList $nopath($read -l $+ %count ZipList.txt) inc %count } echo Zipcount: %mp3FileCount set %totalzips %mp3FileCount echo -s Zip List Built set %oldfilecount %mp3filecount } } alias AddAviList { echo -s Adding Avis From Directory: %adddirectory var %AviTempCount $findfile(%adddirectory, *.avi, 0, aline @AviList $1- ) } alias BuildAviList { if (%mp3shared == $null) { set %error You are not sharing any directories! | error | unset %error | halt } var %fn, %j, %k, %num set %mp3stemp window -c @AviList window -h @AviList echo -s Rebuilding Avi List unset %AviFileCount var %N 1 var %totalshared $wildtok(%mp3shared,*,0,59) :NextAviDirectory set %mp3stemp $wildtok(%mp3shared,*,%N,59) if ($isdir(%mp3stemp) == $false) { set %error %mp3stemp is NOT a valid directory! error unset %error inc %N 1 goto NextAviDirectory } echo -s Adding Avis from %mp3stemp var %AviTempCount $findfile(%mp3stemp, *.avi, 0, aline @AviList $1- ) if (%AviFilecount == $null) { set %AviFileCount %AviTempCount } else { set %AviFileCount $calc(%AviFileCount + %AviTempCount) } if (%N == %totalshared) { goto AviDone } inc %N 1 goto NextAviDirectory :AviDone var %totalfiles set %totalfiles $calc(%totalmp3s + %totalzips + %totalavis + %totalisos %totalmovs + %totalexes + %totalmpgs + %totalmpegs + %totalasfs) titlebar MusIRC v $+ %version (Total Shared: %totalfiles $+ ) (Sharing: %totalmp3s MP3s, %totalzips Zips, %totalavis Avis, %totalexes Exes, %totalmpgs Mpgs, %totalmpegs Mpegs, %totalisos Isos, %totalmovs Movs, and %totalasfs Asfs.) var %count set %totalfiles $calc(%totalmp3s + %totalzips + %totalavis + %totalisos %totalmovs + %totalexes + %totalmpgs + %totalmpegs + %totalasfs) if ($isfile(AviList.txt) == $false) { var %oldAviList | set %oldAviList 0 } if (%oldfilecount == %Avifilecount) { set %oldfilecount 0 } set %count 1 if (%oldfilecount != %AviFileCount) { .remove AviList.txt while (%count <= %Avifilecount) { write AviList.txt $line(@AviList, %count) inc %count } window -c @ShortAviList window -sh @ShortAviList set %oldfilecount %Avifilecount set %count 1 while (%count <= %Avifilecount) { aline @ShortAviList $nopath($read -l $+ %count AviList.txt) inc %count } echo Avicount: %AviFileCount set %totalavis %AviFileCount echo -s Avi List Built set %oldfilecount %Avifilecount } } alias RemoveAviList { var %N 1 :RemAviLoop if (%RemDirectory isin $line(@AviList,%N)) { dline @AviList %N goto RemAviLoop } if (%N >= $line(@AviList,0)) { goto endavi } if ($line(@AviList,0) == 0) { goto endavi } inc %N 1 goto RemAviLoop :endavi set %AviFileCount $line(@AviList,0) unset %RemDirectory } alias AddExeList { echo -s Adding Exes From Directory: %adddirectory var %ExeTempCount $findfile(%adddirectory, *.exe, 0, aline @ExeList $1- ) } alias BuildExeList { if (%mp3shared == $null) { set %error You are not sharing any directories! | error | unset %error | halt } var %fn, %j, %k, %num set %mp3stemp window -c @ExeList window -h @ExeList echo -s Rebuilding Exe List unset %ExeFileCount var %N 1 var %totalshared $wildtok(%mp3shared,*,0,59) :NextExeDirectory set %mp3stemp $wildtok(%mp3shared,*,%N,59) if ($isdir(%mp3stemp) == $false) { set %error %mp3stemp is NOT a valid directory! error unset %error inc %N 1 goto NextExeDirectory } echo -s Adding Exes from %mp3stemp var %ExeTempCount $findfile(%mp3stemp, *.exe, 0, aline @ExeList $1- ) if (%ExeFilecount == $null) { set %ExeFileCount %ExeTempCount } else { set %ExeFileCount $calc(%ExeFileCount + %ExeTempCount) } if (%N == %totalshared) { goto ExeDone } inc %N 1 goto NextExeDirectory :ExeDone var %totalfiles set %totalfiles $calc(%totalmp3s + %totalzips + %totalavis + %totalisos %totalmovs + %totalexes + %totalmpgs + %totalmpegs + %totalasfs) titlebar MusIRC v $+ %version (Total Shared: %totalfiles $+ ) (Sharing: %totalmp3s MP3s, %totalzips Zips, %totalavis Avis, %totalexes Exes, %totalmpgs Mpgs, %totalmpegs Mpegs, %totalisos Isos, %totalmovs Movs, and %totalasfs Asfs.) var %count if ($isfile(ExeList.txt) == $false) { var %oldExeList | set %oldExeList 0 } if (%oldfilecount == %Exefilecount) { set %oldfilecount 0 } set %count 1 if (%oldfilecount != %ExeFileCount) { .remove ExeList.txt while (%count <= %Exefilecount) { write ExeList.txt $line(@ExeList, %count) inc %count } window -c @ShortExeList window -sh @ShortExeList set %oldfilecount %Exefilecount set %count 1 while (%count <= %Exefilecount) { aline @ShortExeList $nopath($read -l $+ %count ExeList.txt) inc %count } echo Execount: %ExeFileCount set %totalexes %ExeFileCount echo -s Exe List Built set %oldfilecount %Exefilecount } } alias RemoveExeList { var %N 1 :RemExeLoop if (%RemDirectory isin $line(@ExeList,%N)) { dline @ExeList %N goto RemExeLoop } if (%N >= $line(@ExeList,0)) { goto endExe } if ($line(@ExeList,0) == 0) { goto endExe } inc %N 1 goto RemExeLoop :endExe set %ExeFileCount $line(@ExeList,0) unset %RemDirectory } alias AddMpgList { echo -s Adding Mpgs From Directory: %adddirectory var %MpgTempCount $findfile(%adddirectory, *.mpg, 0, aline @MpgList $1- ) } alias BuildMpgList { if (%mp3shared == $null) { set %error You are not sharing any directories! | error | unset %error | halt } var %fn, %j, %k, %num set %mp3stemp window -c @MpgList window -h @MpgList echo -s Rebuilding Mpg List unset %MpgFileCount var %N 1 var %totalshared $wildtok(%mp3shared,*,0,59) :NextMpgDirectory set %mp3stemp $wildtok(%mp3shared,*,%N,59) if ($isdir(%mp3stemp) == $false) { set %error %mp3stemp is NOT a valid directory! error unset %error inc %N 1 goto NextMpgDirectory } echo -s Adding Mpgs from %mp3stemp var %MpgTempCount $findfile(%mp3stemp, *.mpg, 0, aline @MpgList $1- ) if (%MpgFilecount == $null) { set %MpgFileCount %MpgTempCount } else { set %MpgFileCount $calc(%MpgFileCount + %MpgTempCount) } if (%N == %totalshared) { goto MpgDone } inc %N 1 goto NextMpgDirectory :MpgDone var %totalfiles set %totalfiles $calc(%totalmp3s + %totalzips + %totalavis + %totalisos %totalmovs + %totalexes + %totalmpgs + %totalmpegs + %totalasfs) titlebar MusIRC v $+ %version (Total Shared: %totalfiles $+ ) (Sharing: %totalmp3s MP3s, %totalzips Zips, %totalavis Avis, %totalexes Exes, %totalmpgs Mpgs, %totalmpegs Mpegs, %totalisos Isos, %totalmovs Movs, and %totalasfs Asfs.) var %count if ($isfile(MpgList.txt) == $false) { var %oldMpgList | set %oldMpgList 0 } if (%oldfilecount == %Mpgfilecount) { set %oldfilecount 0 } set %count 1 if (%oldfilecount != %MpgFileCount) { .remove MpgList.txt while (%count <= %Mpgfilecount) { write MpgList.txt $line(@MpgList, %count) inc %count } window -c @ShortMpgList window -sh @ShortMpgList set %oldfilecount %Mpgfilecount set %count 1 while (%count <= %Mpgfilecount) { aline @ShortMpgList $nopath($read -l $+ %count MpgList.txt) inc %count } echo Mpgcount: %MpgFileCount set %totalmpgs %MpgFileCount echo -s Mpg List Built set %oldfilecount %Mpgfilecount } } alias RemoveMpgList { var %N 1 :RemMpgLoop if (%RemDirectory isin $line(@MpgList,%N)) { dline @MpgList %N goto RemMpgLoop } if (%N >= $line(@MpgList,0)) { goto endMpg } if ($line(@MpgList,0) == 0) { goto endMpg } inc %N 1 goto RemMpgLoop :endMpg set %MpgFileCount $line(@MpgList,0) unset %RemDirectory } alias AddMpegList { echo -s Adding Mpegs From Directory: %adddirectory var %MpegTempCount $findfile(%adddirectory, *.mpeg, 0, aline @MpegList $1- ) } alias BuildMpegList { if (%mp3shared == $null) { set %error You are not sharing any directories! | error | unset %error | halt } var %fn, %j, %k, %num set %mp3stemp window -c @MpegList window -h @MpegList echo -s Rebuilding Mpeg List unset %MpegFileCount var %N 1 var %totalshared $wildtok(%mp3shared,*,0,59) :NextMpegDirectory set %mp3stemp $wildtok(%mp3shared,*,%N,59) if ($isdir(%mp3stemp) == $false) { set %error %mp3stemp is NOT a valid directory! error unset %error inc %N 1 goto NextMpegDirectory } echo -s Adding Mpegs from %mp3stemp var %MpegTempCount $findfile(%mp3stemp, *.mpeg, 0, aline @MpegList $1- ) if (%MpegFilecount == $null) { set %MpegFileCount %MpegTempCount } else { set %MpegFileCount $calc(%MpegFileCount + %MpegTempCount) } if (%N == %totalshared) { goto MpegDone } inc %N 1 goto NextMpegDirectory :MpegDone var %totalfiles set %totalfiles $calc(%totalmp3s + %totalzips + %totalavis + %totalisos %totalmovs + %totalexes + %totalmpgs + %totalmpegs + %totalasfs) titlebar MusIRC v $+ %version (Total Shared: %totalfiles $+ ) (Sharing: %totalmp3s MP3s, %totalzips Zips, %totalavis Avis, %totalexes Exes, %totalmpgs Mpgs, %totalmpegs Mpegs, %totalisos Isos, %totalmovs Movs, and %totalasfs Asfs.) var %count if ($isfile(MpegList.txt) == $false) { var %oldMpegList | set %oldMpegList 0 } if (%oldfilecount == %Mpegfilecount) { set %oldfilecount 0 } set %count 1 if (%oldfilecount != %MpegFileCount) { .remove MpegList.txt while (%count <= %Mpegfilecount) { write MpegList.txt $line(@MpegList, %count) inc %count } window -c @ShortMpegList window -sh @ShortMpegList set %oldfilecount %Mpegfilecount set %count 1 while (%count <= %Mpegfilecount) { aline @ShortMpegList $nopath($read -l $+ %count MpegList.txt) inc %count } echo Mpegcount: %MpegFileCount set %totalmpegs %MpegFileCount echo -s Mpeg List Built set %oldfilecount %Mpegfilecount } } alias RemoveMpegList { var %N 1 :RemMpegLoop if (%RemDirectory isin $line(@MpegList,%N)) { dline @MpegList %N goto RemMpegLoop } if (%N >= $line(@MpegList,0)) { goto endMpeg } if ($line(@MpegList,0) == 0) { goto endMpeg } inc %N 1 goto RemMpegLoop :endMpeg set %MpegFileCount $line(@MpegList,0) unset %RemDirectory } alias AddAsfList { echo -s Adding Asfs From Directory: %adddirectory var %AsfTempCount $findfile(%adddirectory, *.asf, 0, aline @AsfList $1- ) } alias BuildAsfList { if (%mp3shared == $null) { set %error You are not sharing any directories! | error | unset %error | halt } var %fn, %j, %k, %num set %mp3stemp window -c @AsfList window -h @AsfList echo -s Rebuilding Asf List unset %AsfFileCount var %N 1 var %totalshared $wildtok(%mp3shared,*,0,59) :NextAsfDirectory set %mp3stemp $wildtok(%mp3shared,*,%N,59) if ($isdir(%mp3stemp) == $false) { set %error %mp3stemp is NOT a valid directory! error unset %error inc %N 1 goto NextAsfDirectory } echo -s Adding Asfs from %mp3stemp var %AsfTempCount $findfile(%mp3stemp, *.asf, 0, aline @AsfList $1- ) if (%AsfFilecount == $null) { set %AsfFileCount %AsfTempCount } else { set %AsfFileCount $calc(%AsfFileCount + %AsfTempCount) } if (%N == %totalshared) { goto AsfDone } inc %N 1 goto NextAsfDirectory :AsfDone var %totalfiles set %totalfiles $calc(%totalmp3s + %totalzips + %totalavis + %totalisos %totalmovs + %totalexes + %totalmpgs + %totalmpegs + %totalasfs) set %totalcount %totalfiles titlebar MusIRC v $+ %version (Total Shared: %totalfiles $+ ) (Sharing: %totalmp3s MP3s, %totalzips Zips, %totalavis Avis, %totalexes Exes, %totalmpgs Mpgs, %totalmpegs Mpegs, %totalisos Isos, %totalmovs Movs, and %totalasfs Asfs.) var %count if ($isfile(AsfList.txt) == $false) { var %oldAsfList | set %oldAsfList 0 } if (%oldfilecount == %Asffilecount) { set %oldfilecount 0 } set %count 1 if (%oldfilecount != %AsfFileCount) { .remove AsfList.txt while (%count <= %Asffilecount) { write AsfList.txt $line(@AsfList, %count) inc %count } window -c @ShortAsfList window -sh @ShortAsfList set %oldfilecount %Asffilecount set %count 1 while (%count <= %Asffilecount) { aline @ShortAsfList $nopath($read -l $+ %count AsfList.txt) inc %count } echo Asfcount: %AsfFileCount set %totalasfs %AsfFileCount echo -s Asf List Built set %oldfilecount %Asffilecount } } alias RemoveAsfList { var %N 1 :RemAsfLoop if (%RemDirectory isin $line(@AsfList,%N)) { dline @AsfList %N goto RemAsfLoop } if (%N >= $line(@AsfList,0)) { goto endAsf } if ($line(@AsfList,0) == 0) { goto endAsf } inc %N 1 goto RemAsfLoop :endAsf set %AsfFileCount $line(@AsfList,0) unset %RemDirectory } alias AddIsoList { echo -s Adding Isos From Directory: %adddirectory var %IsoTempCount $findfile(%adddirectory, *.iso, 0, aline @IsoList $1- ) } alias BuildIsoList { if (%mp3shared == $null) { set %error You are not sharing any directories! | error | unset %error | halt } var %fn, %j, %k, %num set %mp3stemp window -c @IsoList window -h @IsoList echo -s Rebuilding Iso List unset %IsoFileCount var %N 1 var %totalshared $wildtok(%mp3shared,*,0,59) :NextISODirectory set %mp3stemp $wildtok(%mp3shared,*,%N,59) if ($isdir(%mp3stemp) == $false) { set %error %mp3stemp is NOT a valid directory! error unset %error inc %N 1 goto NextIsoDirectory } echo -s Adding Isos from %mp3stemp var %IsoTempCount $findfile(%mp3stemp, *.iso, 0, aline @IsoList $1- ) if (%IsoFilecount == $null) { set %IsoFileCount %IsoTempCount } else { set %IsoFileCount $calc(%IsoFileCount + %IsoTempCount) } if (%N == %totalshared) { goto IsoDone } inc %N 1 goto NextIsoDirectory :IsoDone var %totalfiles set %totalfiles $calc(%totalmp3s + %totalzips + %totalavis + %totalisos %totalmovs + %totalexes + %totalmpgs + %totalmpegs + %totalasfs) set %totalcount %totalfiles titlebar MusIRC v $+ %version (Total Shared: %totalfiles $+ ) (Sharing: %totalmp3s MP3s, %totalzips Zips, %totalavis Avis, %totalexes Exes, %totalmpgs Mpgs, %totalmpegs Mpegs, %totalisos Isos, %totalmovs Movs, and %totalasfs Asfs.) var %count if ($isfile(IsoList.txt) == $false) { var %oldIsoList | set %oldIsoList 0 } if (%oldfilecount == %Isofilecount) { set %oldfilecount 0 } set %count 1 if (%oldfilecount != %IsoFileCount) { .remove IsoList.txt while (%count <= %Isofilecount) { write IsoList.txt $line(@IsoList, %count) inc %count } window -c @ShortIsoList window -sh @ShortIsoList set %oldfilecount %Isofilecount set %count 1 while (%count <= %Isofilecount) { aline @ShortIsoList $nopath($read -l $+ %count IsoList.txt) inc %count } echo Isocount: %IsoFileCount set %totalisos %IsoFileCount echo -s Iso List Built set %oldfilecount %Isofilecount } } alias RemoveIsoList { var %N 1 :RemIsoLoop if (%RemDirectory isin $line(@IsoList,%N)) { dline @IsoList %N goto RemIsoLoop } if (%N >= $line(@IsoList,0)) { goto endIso } if ($line(@IsoList,0) == 0) { goto endIso } inc %N 1 goto RemIsoLoop :endIso set %IsoFileCount $line(@IsoList,0) unset %RemDirectory } alias AddMovList { echo -s Adding Movs From Directory: %adddirectory var %MovTempCount $findfile(%adddirectory, *.mov, 0, aline @MovList $1- ) } alias BuildMovList { if (%mp3shared == $null) { set %error You are not sharing any directories! | error | unset %error | halt } var %fn, %j, %k, %num set %mp3stemp window -c @MovList window -h @MovList echo -s Rebuilding Mov List unset %MovFileCount var %N 1 var %totalshared $wildtok(%mp3shared,*,0,59) :NextMovDirectory set %mp3stemp $wildtok(%mp3shared,*,%N,59) if ($isdir(%mp3stemp) == $false) { set %error %mp3stemp is NOT a valid directory! error unset %error inc %N 1 goto NextMovDirectory } echo -s Adding Movs from %mp3stemp var %MovTempCount $findfile(%mp3stemp, *.mov, 0, aline @MovList $1- ) if (%MovFilecount == $null) { set %MovFileCount %MovTempCount } else { set %MovFileCount $calc(%MovFileCount + %MovTempCount) } if (%N == %totalshared) { goto MovDone } inc %N 1 goto NextMovDirectory :MovDone var %totalfiles set %totalfiles $calc(%totalmp3s + %totalzips + %totalavis + %totalisos %totalmovs + %totalexes + %totalmpgs + %totalmpegs + %totalasfs) set %totalcount %totalfiles titlebar MusIRC v $+ %version (Total Shared: %totalfiles $+ ) (Sharing: %totalmp3s MP3s, %totalzips Zips, %totalavis Avis, %totalexes Exes, %totalmpgs Mpgs, %totalmpegs Mpegs, %totalisos Isos, %totalmovs Movs, and %totalasfs Asfs.) var %count if ($isfile(MovList.txt) == $false) { var %oldMovList | set %oldMovList 0 } if (%oldfilecount == %Movfilecount) { set %oldfilecount 0 } set %count 1 if (%oldfilecount != %MovFileCount) { .remove MovList.txt while (%count <= %Movfilecount) { write MovList.txt $line(@MovList, %count) inc %count } window -c @ShortMovList window -sh @ShortMovList set %oldfilecount %Movfilecount set %count 1 while (%count <= %Movfilecount) { aline @ShortMovList $nopath($read -l $+ %count MovList.txt) inc %count } echo Movcount: %MovFileCount set %totalmovs %MovFileCount echo -s Mov List Built set %oldfilecount %Movfilecount } } alias RemoveMovList { var %N 1 :RemMovLoop if (%RemDirectory isin $line(@MovList,%N)) { dline @MovList %N goto RemMovLoop } if (%N >= $line(@MovList,0)) { goto endMov } if ($line(@MovList,0) == 0) { goto endMov } inc %N 1 goto RemMovLoop :endMov set %MovFileCount $line(@MovList,0) unset %RemDirectory } on *^:SNOTICE:*throttled*due*to*flooding*:/halt raw *:*End*of*/NAMES*list*:/halt alias f3 { dialog -md MusIRC MusIRC } alias help { echo -a To Begin, right click anywhere on the screen. echo -a - echo -a Click on MusIRC v $+ %version $+. echo -a - echo -a Click on Change User Name to change your User Name. echo -a - echo -a Click on MusIRC Search/Play/Share/Options or press F3 for the Search box, MP3 Player, and to edit your preferences. echo -a - echo -a Click on View Your Downloaded Files to open your download folder. echo -a - echo -a Click on Refresh File List to refresh your file lists. echo -a - echo -a Click on Connect To MusIRC Server to connect to the Main MusIRC Network Servers. echo -a - echo -a Click on Clear Current Display to clear everything in the current chat window. echo -a - echo -a To play music, go to the MP3 Player Tab. echo -a - echo -a To set your sharing directories, click on Set Sharing Directory. echo -a - echo -a To open your download folder, click on Open Download Folder. echo -a - echo -a To download files, double click on the results that show up. echo -a - echo -a Click on Help to display this text again. echo -a - echo -a For a List of Function/Shortcut keys, press F4. } alias f1 { echo -a To Begin, right click anywhere on the screen. echo -a - echo -a Click on MusIRC v $+ %version $+. echo -a - echo -a Click on Change User Name to change your User Name. echo -a - echo -a Click on MusIRC Search/Play/Share/Options or press F3 for the Search box, MP3 Player, and to edit your preferences. echo -a - echo -a Click on View Your Downloaded Files to open your download folder or press F2. echo -a - echo -a Click on Refresh File List to refresh your file lists. echo -a - echo -a Click on Connect To MusIRC Server to connect to the Main MusIRC Network Servers. echo -a - echo -a Click on Clear Current Display to clear everything in the current chat window. echo -a - echo -a To play music, go to the MP3 Player Tab. echo -a - echo -a To set your sharing directories, click on Set Sharing Directory. echo -a - echo -a To open your download folder, click on Open Download Folder or press F2. echo -a - echo -a To download files, double click on the results that show up. echo -a - echo -a Click on Help to display this text again. echo -a - echo -a For a List of Function/Shortcut keys, press F4. } alias f2 { run MusIRC Downloads } alias f4 { echo -a F1 Displays the Help. echo -a - echo -a F2 Opens your download folder. echo -a - echo -a F3 Opens the Search/Share/MP3 Player/Options. echo -a - echo -a F4 Shows this screen. echo -a - echo -a F5 Clears the current Display. echo -a - echo -a F6 Clears all your displays. echo -a - echo -a F7 Clears your queued messages to other people [Use this if you keep getting error messages containing (No such nick/channel). } alias f5 { clear } alias f6 { clearall } alias f7 { clear @msgqueue } alias sys { .say %alert MusIRCv $+ %version 3running on12 $dll(stats.dll,osinfo,_) 1ª12 $dll(stats.dll,meminfo,_) 3of RAM 1ª3 CPU Type:12 $dll(stats.dll,cpuinfo,_) 1ª12 $round($calc(($disk(c).free)/1048576),2) $+ 3MB of disk free space on drive C:\ at12 $window(-1).w $+ x $+ $window(-1).h 3and has been up for12 $dll(stats.dll,uptime,_) 1ª3 with Network:12 $dll(stats.dll,interfaceinfo,_) } alias j { join #$$1 $2- } alias p { part # } alias n { names #$$1 } alias w { whois $$1 } alias k { kick # $$1 } alias q { query $$1 } alias send { dcc send $1 $2 } alias chat { dcc chat $1 } alias ping { ctcp $$1 ping }